<!--暂时不用-->
<template>
<!--主界面-->
<!--  用户登录成功之后跳转的界面-->
  <div class="main">
    <el-row>
      <el-col :span="24" ><div class="grid-content bg-purple-dark" style="background-color: rgba(0,0,0,0.2)" >
        <p style="font-size: 25px ">{{user.planet}}</p>
      </div></el-col>
    </el-row>
    <el-container style="height: 500px">
      <el-aside width="200px" style="height: 100% ;background-color:rgba(0,0,0,0.2)">
        <my-header ></my-header>
      </el-aside>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </div>
</template>

<script>
import Header from "../views/Header.vue";

export default {
  name: "Main",
  data(){
    return {
      user:{
        id:'',
        name:'',
        planet:'???'
    }


    }
  },
  components:{
    'my-header':Header
  },
  mounted:function (){
    this.user=this.$route.params.user
    console.log(this.$route.params.user)
  }
}
</script>

<style scoped>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 30px;
  grid-column-end: auto;
}

#nav a {
  font-weight: bold;
  color: #2c3e50;
}

#nav a.router-link-exact-active {
  color: #42b983;
}

.el-col {
  border-radius: 4px;
}
.bg-purple-dark {
  background: #99a9bf;
}
.grid-content {
  border-radius: 4px;
  min-height: 50px;
  text-align:center;
  font-size: larger;
  color: white;
}

</style>